<template>
  <view class="center-container">
    <view class="center-header">
      <view class="center-icon">
        <view class="icon-circle">
          <text class="icon-text">+</text>
        </view>
      </view>
      <text class="center-title">功能中心</text>
    </view>

    <view class="center-content">
      <view class="function-grid">
        <view
          class="function-item"
          v-for="(item, index) in functionList"
          :key="index"
        >
          <view class="function-icon">
            <text class="function-icon-text">{{ item.icon }}</text>
          </view>
          <text class="function-name">{{ item.name }}</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      functionList: [
        { name: "快速预约", icon: "📅" },
        { name: "健康档案", icon: "📋" },
        { name: "在线咨询", icon: "💬" },
        { name: "检查报告", icon: "📊" },
        { name: "用药提醒", icon: "💊" },
        { name: "健康资讯", icon: "📰" },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped>
.center-container {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.center-header {
  background: linear-gradient(135deg, #32cd32, #228b22);
  padding: 60rpx 40rpx 40rpx;
  text-align: center;
  color: white;
}

.center-icon {
  margin-bottom: 20rpx;
}

.icon-circle {
  width: 120rpx;
  height: 120rpx;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-text {
  font-size: 60rpx;
  color: white;
  font-weight: bold;
}

.center-title {
  font-size: 36rpx;
  font-weight: bold;
}

.center-content {
  padding: 40rpx 20rpx;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30rpx;
}

.function-item {
  background-color: white;
  border-radius: 20rpx;
  padding: 40rpx 20rpx;
  text-align: center;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
}

.function-icon {
  margin-bottom: 20rpx;
}

.function-icon-text {
  font-size: 60rpx;
}

.function-name {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}
</style>
